<%@page contentType="text/javascript; charset=GBK" language="java"%>
<%@page import="com.tansuosoft.discoverx.util.StringUtil,com.tansuosoft.discoverx.app.work.ReviewTree,com.tansuosoft.discoverx.app.work.ReviewTreeContext"%>
<%
com.tansuosoft.discoverx.web.JSPContext jspContext=new com.tansuosoft.discoverx.web.JSPContext(pageContext);
jspContext.setNoCache();
int sc=StringUtil.getValueInt(request.getParameter("sc"), 0);
boolean isParent=StringUtil.getValueBool(request.getParameter("p"), false);
ReviewTreeContext context=ReviewTreeContext.getInstance();
ReviewTree[] rts=(isParent?context.getDirectParents(sc):context.getChildren(sc));
StringBuilder sbTV=new StringBuilder();
if(rts!=null){
	for(ReviewTree rtx:rts){
		sbTV.append(sbTV.length()>0?",":"").append(rtx.toString());
	}
}
%>[<%=sbTV.toString()%>]